package json;

import org.json.JSONException;
import org.json.JSONStringer;

public class JSONStringerTest {

	/**
	 * @param args
	 * @throws JSONException
	 */
	public static void main(String[] args) throws JSONException {
		JSONStringer stringer = new JSONStringer();
		String str = stringer.object().key("name").value("zhaohui").key("age")
				.value(20).endObject().toString();
		System.out.println(str);

	}

}
